package com.hpdz.hotel_back;

import com.hpdz.hotel_back.config.RoomManger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@SpringBootApplication
public class HotelBackApplication {

	public static void main(String[] args) {
		SpringApplication.run(HotelBackApplication.class, args);
	}

	@Bean
	public RoomManger roomManger(){
		return new RoomManger();
	}

}
